package fr.isen.web.webservicetemp.Dao;

import fr.isen.web.webservicetemp.Entity.Data;

import java.util.Date;
import java.util.List;

/**
 *
 * @author louis madeuf
 */
public interface DataAccessObjectInterface {
    
    public List<Data> getAllData();
    public void deleteDatabase();
    public Data addData(Data data);
    public void addDatas(List<Data> datas);
    public void deleteData(Data data);
    public void deleteDataById(long id);
    public Data getDataFromId(long id);
    public Data updateData(Data data);
    public Boolean hasATwin(String location, Date date);
    public List<Data> getDataBetween(Date startDate, Date endDate);
    public List<String> getLocation();
    public List<Data> getDataView2DYears(Date date,String Location);
    public List<Data> getDataView2DMonth(Date date,String Location);
    public List<Data> getDataView2DDay(Date date,String Location);
    
}
